<%@ include file="/common/taglibs.jsp"%>

<head>
    <title><fmt:message key="feedBackList.title"/></title>
    <meta name="heading" content="<fmt:message key='feedBackList.heading'/>"/>
    <meta name="menu" content="feedBackMenu"/>
</head>

<c:set var="buttons">
    <input type="button" onclick="location.href='<c:url value="/mainMenu.html"/>'"
        value="<fmt:message key="button.done"/>"/>
</c:set>

<c:out value="${buttons}" escapeXml="false"/>

<display:table name="feedBackList" cellspacing="0" cellpadding="0" requestURI=""
    id="feedBack" pagesize="15" class="table personList" export="false">
    
    <display:column sortable="true" titleKey="feedBack.fdate">
       <a href="<c:url value='/checkpatient.html?t='/><c:out value="${feedBack.id}"/>&u=<c:out value="${feedBack.patient.id}"/>">
       <c:out value="${feedBack.dateStr}"/>
       </a>
    </display:column>   
	<display:column property="patient.name" escapeXml="true" sortable="true" titleKey="user.name"/>
    <display:column sortable="true" titleKey="feedBack.isGood">
		<c:choose>
       		<c:when test="${feedBack.isGood}">
    			<img src="<c:url value="/images/good.gif"/>" class="icon"/>
    		</c:when>
    		<c:otherwise>
    			<img src="<c:url value="/images/bad.gif"/>" class="icon"/>
    		</c:otherwise>
    	</c:choose>
    </display:column>    
    <display:column property="contentStr" escapeXml="false" sortable="false" titleKey="feedBack.content"/>

    <display:setProperty name="paging.banner.item_name" value="feedBack"/>
    <display:setProperty name="paging.banner.items_name" value="feedBacks"/>
</display:table>

<c:out value="${buttons}" escapeXml="false"/>

<script type="text/javascript">
    highlightTableRows("feedBack");
</script>